# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-pem
pkgver=20.1.0
pkgrel=0
pkgdesc="Easy PEM file parsing"
options="!check" # Requires unpackaged pymodule 'pretend'
url="https://pem.readthedocs.io/en/stable/"
arch="noarch"
license="MIT"
depends="python3 py3-twisted"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-certifi py3-openssl"
source="$pkgname-$pkgver.tar.gz::https://github.com/hynek/pem/archive/$pkgver.tar.gz"
builddir="$srcdir/pem-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="3df1e2d575ba5a1452932a4bb055c0a7dc1023c23133e7ed8b5567284c9a0755a105ae2b10fdfaf112cf5fc5f6adb611313961bbe6f94f9c013b84cf367ec5d3  py3-pem-20.1.0.tar.gz"
